import java.util.Scanner;

/**
 * Created by forcht on 2018/4/25.
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int[] a={1,5,10,20,50,100};
        int n=scanner.nextInt();
        long[] dp=new long[n+1];
        dp[0]=1;
        for(int i=0;i<6;i++){
            for(int j=1;j<=n;j++){
                if(j>=a[i]){
                    dp[j]=dp[j]+dp[j-a[i]];
                }
            }
        }
        System.out.println(dp[n]);
    }
}
